package com.bw.liuyushan.mykotlin_firstmvptest.MVP.Presenter

import com.bw.liuyushan.mvp_kotlin_lib.Presenter.BasePresenter
import com.bw.liuyushan.mykotlin_firstmvptest.MVP.Contrack.IContrackTest
import com.bw.liuyushan.mykotlin_firstmvptest.MVP.Entity.Food
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
import retrofit2.http.Url

/**
 *MyKotlin_FirstMVPTest
 *file name is : BaseModelTest
 *created by Ender on 2021/9/14 19:27.
 *author : 刘雨杉
 *Describe:
 */
class BasePresenterTest(iv:IContrackTest.C_ViewTest,im:IContrackTest.C_ModelTest) : BasePresenter< IContrackTest.C_ViewTest,IContrackTest.C_ModelTest>(im,iv){
fun mpDate(url: String){
    im.askDate(url,object : Observer<Food>{
        override fun onComplete() {

        }

        override fun onSubscribe(d: Disposable) {
        }

        override fun onNext(t: Food) {
            iv.ShowDate(t)
        }

        override fun onError(e: Throwable) {
        }

    })
//    im.askDate(object : Observer<Food>{
//        override fun onComplete() {
//        }
//
//        override fun onSubscribe(d: Disposable) {
//        }
//
//        override fun onNext(t: Food) {
//            iv.ShowDate(t)
//        }
//
//        override fun onError(e: Throwable) {
//        }
//
//    })
}

}